/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.dto.warehous;

import com.fuyao.cloud.common.data.mybatis.SearchCondition;
import com.fuyao.cloud.common.data.mybatis.SearchOp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 入库管理
 *
 * @author liyue
 * @date 2021-12-06 20:19:22
 */
@Data
@ApiModel(value = "入库管理查询条件类")
public class WarehousSearchDTO {

	private static final long serialVersionUID = 1L;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "入库人姓名")
	private String createBy;

	@SearchCondition( op = SearchOp.IN)
	@ApiModelProperty(value = "类型")
	private List<String> type;

	@SearchCondition(op = SearchOp.BETWEEN)
	@ApiModelProperty(value = "创建时间")
	private List<LocalDate> createTime;

	@SearchCondition
	@ApiModelProperty(value = "入库人所属OU的ID")
	private Long deptId;

	@SearchCondition
	@ApiModelProperty(value = "入库人ID")
	private Long createId;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "单号")
	private String caseid;

	@SearchCondition
	@ApiModelProperty(value = "单据性质用来区分是冲销还是入库（0入库单，1冲销单）")
	private String classify;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "验收订单号")
	private String parentCaseid;

	@SearchCondition
	@ApiModelProperty(value = "合同或发票ID")
	private Long contractId;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "合同或发票编号")
	private String contractNumber;


	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "合同或发票名称")
	private String contractName;

	@SearchCondition
	@ApiModelProperty(value = "状态：默认为0{0：草稿、3：已完成")
	private String status;

	@SearchCondition
	@ApiModelProperty(value = "供应商ID")
	private Long supplierId;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "供应商名称")
	private String supplierName;

	@SearchCondition(op = SearchOp.BETWEEN)
	@ApiModelProperty(value = "入库时间")
	private List<LocalDate> inTime;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "存放房间名称")
	private String houseName;

	@SearchCondition
	@ApiModelProperty(value = "存放房间ID")
	private Long houseId;

	@SearchCondition
	@ApiModelProperty(value = "存放位置id")
	private Long locationId;

	@SearchCondition
	@ApiModelProperty(value = "采购方式01：邀标、02：自采:03：政府采购")
	private String method;

	@ApiModelProperty(value = "入库总价格")
	private BigDecimal amount;

	@SearchCondition
	@ApiModelProperty(value = "货币类型默认人民币：人民币：、欧元：欧元、美元：美元、法元：法元")
	private String currencyType;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "入库明细")
	private String detailed;

	@SearchCondition(op = SearchOp.LIKE)
	@ApiModelProperty(value = "入库说明")
	private String explains;

	// 清单条件

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产名称")
	private String cardName;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产编码")
	private String cardCode;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "商品条码")
	private String barcode;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "资产编码")
	private String model;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "入库数量")
	private String quantity;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "入库单价")
	private String price;

	@SearchCondition(ignore = true)
	@ApiModelProperty(value = "入库金额")
	private String amountList;

}
